﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using log4net;
using LapvBussiness;

namespace Lapv
{
    public partial class Lapv : System.Web.UI.MasterPage
    {
        public string domainStyle = ConfigLapv.Instance.DomainStyle;
        public string domain =ConfigLapv.Instance.DomainAdmin;
        protected void Page_Init(object sender, EventArgs e)
        {
            ltstyles.Text = @"<link rel=""shortcut icon"" type=""image/x-icon"" href=""" + domainStyle + @"imgs/logo.ico"" />";
            ltstyles.Text = ltstyles.Text + @"<link rel=""image_src"" href=""" + domainStyle + @"imgs/logo.png"" />";
            ltstyles.Text = ltstyles.Text + @"<link href=""" + domainStyle + @"Css/skin.css"" rel=""stylesheet"" type=""text/css"" />";
            ltstyles.Text = ltstyles.Text + @"<link href=""" + domainStyle + @"Css/form.css"" rel=""stylesheet"" type=""text/css"" /> ";
            ltstyles.Text = ltstyles.Text + @"<link href=""" + domainStyle + @"Css/style.css"" rel=""stylesheet"" type=""text/css"" />";

        }
        private static readonly ILog log = LogManager.GetLogger(typeof(Lapv).Name);
      
        public string MessageInfomational
        {
            set { 
                 lbnInfo.Text = value.Replace("<\n>", "<br />");
                divInfo.Visible = true; 
            }
        }
        public string MessageWarning
        {
            set {
                lbnWarning.Text = value.Replace("<\n>", "<br />"); divWarning.Visible = true; 
            }
        }
        public string MessageError
        {
            set {
                   lbnError.Text = value.Replace("<\n>", "<br />"); divError.Visible = true; 
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
